import request from "@/request";

export function updateUser(data: object) {
  return request({
    url: "/user/update",
    method: "post",
    data
  });
}

export function userlogin(data: object) {
  return request({
    url: "/user/login",
    method: "post",
    data
  });
}

export function getCurrentUser() {
  return request({
    url: "/user/current",
    method: "get",
  });
}
